
#ifndef __GPDEFINE_H__
#define __GPDEFINE_H__

#define MAXARRAYCOUNT                        6		// for ps 1.4

#define Fail_Invalid                        -1
#define Fail_Direct3DCreate8                -1001
#define Fail_GetAdapterDisplayMode          -1002
#define Fail_GetDeviceCaps                  -1003
#define Fail_CreateDevice                   -1004
#define Fail_PixelShaderVersion             -1005
#define Fail_MaxSimultaneousTextures        -1006
#define Fail_CreateSysTexture               -1007
#define Fail_CreateVrmTexture               -1008
#define Fail_LockRect                       -1009
#define Fail_UnlockRect                     -1010
#define Fail_GetSurfaceLevel                -1011
#define Fail_CopyRects                      -1012
#define Fail_Release                        -1013
#define Fail_InvalidSourceIndex             -1014
#define Fail_SetTexture                     -1015
#define Fail_GetDepthStencilSurface         -1016
#define Fail_Clear                          -1017
#define Fail_BeginScene                     -1018
#define Fail_EndScene                       -1019
#define Fail_DrawPrimitive                  -1020
#define Fail_SetRenderTarget                -1021
#define Fail_SetRenderState                 -1022
#define Fail_CreateVertexBuffer             -1023
#define Fail_VertexBufferLock               -1024
#define Fail_VertexBufferUnlock             -1025
#define Fail_CreateIndexBuffer              -1026
#define Fail_IndexBufferLock                -1027
#define Fail_IndexBufferUnlock              -1028
#define Fail_ClearIndices                   -1029
#define Fail_ClearTexture                   -1030
#define Fail_DeleteVertexShader             -1031
#define Fail_DeletePixelShader              -1032
#define Fail_SetVertexShader                -1033
#define Fail_SetPixelShader                 -1034
#define Fail_SetVertexShaderConstant        -1035
#define Fail_SetPixelShaderConstant         -1036
#define Fail_SetStreamSource                -1037
#define Fail_SetIndices                     -1038
#define Fail_Present                        -1039
#define Fail_GetDesc                        -1040
#define Fail_GetRenderTarget                -1041
#define Fail_GetBackBuffer                  -1042
#define Fail_CreateSwapChain				-1043
#define Fail_PresentSwapChain				-1044

#endif // __GPDEFINE_H__
